<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{ msg }}</p>
        <p>-{{ msg }}-</p>
        <p>+{{ msg }}+</p>
        <p>字符串：{{ msg }}</p>
        <p>数值:{{ num }}</p>
        <p>布尔值:{{ flag }}</p>
        <p>数组:{{ arr }}</p>
        <p>对象:{{ user }}</p>
        <p>时间对象:{{ day }}</p>
        <p> {{ new Date() }}</p>
        <p>null:{{ arg1 }}</p>
        <p>undefined：{{ arg2 }}</p>
        <p>{{ p }}%</p>
        <p>{{ p+'%' }}</p>
        <p>{{ "双引号字符串 }}</p>
        <p>{{  }}</p>
        <p>{{  }}</p>
    </div>
    <script>
        new Vue({
            el:'#app',
            data:{
                msg:"测试数据",
                num:100,
                flag:true,
                arr:["a","b","c"],
                user:{
                    name:"tom",
                    age:23
                },
                stus:[
                    { name:"aaa",sex:"f" },
                    { name:"bbb",sex:"m" }
                ],
                day:new Date(),
                opt:new Option("测试","test"),
                set:new Set([1,2,3,4]),
                arg1:null,
                arg2:undefined,
                p:30,
                index:0,
                key:"name",
                tempStr:"<span style='color:red'>标签字符串</span>",
                str:"aaaaa\nbbbb\ncccc\nddddd",
                JSON:"仓库变量"
            }
        })
    </script>
</body>
</html>